<?php
$this->breadcrumbs=array(
	'Jenis Mobils',
);

$this->menu=array(
	array('label'=>Yii::t('view', 'Buat Baru'),'url'=>array('create'),'icon'=>'fa fa-plus-circle'),	
);

//Yii::app()->clientScript->registerScript('search', "
//	$('.search-button').click(function(){
//		$('.search-form').toggle();
//		return false;
//	});
//	$('.search-form form').submit(function(){
//		$.fn.yiiGridView.update('jenis-mobil-grid', {
//			data: $(this).serialize()
//		});
//		return false;
//	});
//");
?>

<?php $box = $this->beginWidget(
    'bootstrap.widgets.TbBox',
    array(
        'title' => Yii::t('view', 'List Jenis Mobil') ,
        'headerIcon' => 'icon- fa fa-list-ol',
        'headerButtons' => array(
            array(
                'class' => 'bootstrap.widgets.TbButtonGroup',
                'type' => 'success',
                // '', 'primary', 'info', 'success', 'warning', 'danger' or 'inverse'
                'buttons' => $this->menu
            ),
        ) 
    )
);?>
		<?php $this->widget('bootstrap.widgets.TbAlert', array(
		    'block'=>false, // display a larger alert block?
		    'fade'=>true, // use transitions?
		    'closeText'=>'&times;', // close link text - if set to false, no close link is displayed
		    'alerts'=>array( // configurations per alert type
		        'success'=>array('block'=>true, 'fade'=>true, 'closeText'=>'&times;'), //success, info, warning, error or danger
		        'info'=>array('block'=>true, 'fade'=>true, 'closeText'=>'&times;'), //success, info, warning, error or danger
		        'warning'=>array('block'=>true, 'fade'=>true, 'closeText'=>'&times;'), //success, info, warning, error or danger
		        'error'=>array('block'=>true, 'fade'=>true, 'closeText'=>'&times;'), //success, info, warning, error or danger
		        'danger'=>array('block'=>true, 'fade'=>true, 'closeText'=>'&times;'), //success, info, warning, error or danger
		    ),
		));
		?>

<?php $this->widget('bootstrap.widgets.TbGridView',array(
	'id'=>'jenis-mobil-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'type' => 'striped hover bordered condensed',
	'columns'=>array(
		array('header'=>'#','value'=>'($this->grid->dataProvider->pagination->currentPage*
					 $this->grid->dataProvider->pagination->pageSize
					)+
					array_search($data,$this->grid->dataProvider->getData())+1',
				'htmlOptions' => array('style' =>'width: 15px'),
		),
		'tipe',
		'deskripsi',
		'standarWaktu',

		array(
			'class'=>'bootstrap.widgets.TbButtonColumn',
		),
	),
)); ?>

<?php $this->endWidget(); ?>